package com.cd.song.jpa.domain;

import com.cd.common.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @Description 歌曲标签表
 * @Author lqq
 * @Date 2025/5/11 10:51
 **/

@Entity
@Data
@Table(name = "db_song_tag")
@NoArgsConstructor
@AllArgsConstructor
@IdClass(SongTagRelationKey.class)
public class SongTagRelation extends BaseDomain {

    @Id
    @Column(name = "song_id")
    private Long songId;

    @Id
    @Column(name = "tag_id")
    private Long tagId;

}
